package com.wutuo.aggragation.report.component;


import com.wutuo.aggragation.report.response.ListMonthSignTaskItem;
import com.wutuo.enums.TaskType;

import java.util.Comparator;

/**
 * 标题、简要说明. <br> 类详细说明.
 * <p/>
 * Copyright: Copyright (c) 2016年04月30日 18:29
 * <p/>
 * Company:
 * <p/>
 *
 * @author Kent
 * @version 1.0.0
 */
public class TaskTypeComparetor implements Comparator<ListMonthSignTaskItem> {

    @Override
    public int compare(ListMonthSignTaskItem o1, ListMonthSignTaskItem o2) {
        int type1 = TaskType.getIntValue(o1.getType());
        int type2 = TaskType.getIntValue(o2.getType());
        return type2 - type1;
    }
}
